Microsoft Azure Storage Essentials by Chukri Soueidi

Microsoft Azure Storage Essentials by Chukri Soueidi

Author:Chukri Soueidi [Soueidi, Chukri]
Language: eng
Format: azw3
Publisher: Packt Publishing
Published: 2015-08-28T04:00:00+00:00


The preceding code gets an existing weather entity and assigns it to the originalEntity, object. Then it creates a new object, DynamicTableEntity and copies the PartitionKey, RowKey, and ETag to the new object and adds two properties, Language and Country, as defined previously. TableOperation.Merge was executed over the newly created object.

What this code does is that it adds two properties to the weather record without changing other existing properties. If we had used Replace instead, the original WeatherEntity properties CityName, CountryCode, Description, Temperature, Humidity, and Wind would have lost their values.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.